import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';

class ToastUtil {
  static void showSuccess(String msg) {
    SmartDialog.showToast(msg);
  }

  static void showFailed(String msg) {
    SmartDialog.showToast(msg);
  }

  static void showTips(String msg, {Alignment? alignment, Widget? widget}) {
    SmartDialog.showToast(
      msg,
      alignment: alignment,
    );
  }

  static Future<void> dismiss() => SmartDialog.dismiss();

}
